package com.bjb.vr.remote.openfeign;

import com.bjb.vr.common.ao.ResPlatformAo;
import com.bjb.vr.remote.fallback.ServiceDegradeFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * openfeign远程调用客户端
 *
 * @version 1.0.0
 * @author: HuJingBo
 * @time: 2022/3/21 15:52
 */
@FeignClient(value = "xr-manager", fallback = ServiceDegradeFallback.class)
public interface ResourcesService {

    /**
     * 根据条件查询资源列表
     *
     * @param resPlatformAo
     * @return
     */
    @PostMapping("/api/manager/v1/resources")
    Object resourceList(@RequestBody ResPlatformAo resPlatformAo);
}
